package com.ruoyi.business.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 盘点计划对象 wms_inventory_plan
 *
 * @author ruoyi
 * @date 2024-01-21
 */
@Data
public class WmsInventoryPlan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 计划id */
    private Long id;

    /** 盘点计划单号 */
    @Excel(name = "盘点计划单号")
    private String inventoryNo;

    /** 状态: wait=待盘点,all=已完成,partial=盘点种 */
    @Excel(name = "状态: wait=待盘点,all=已完成,partial=盘点种")
    private String status;

    /** 总重量(kg) */
    @Excel(name = "总重量(kg)")
    private BigDecimal totalWeight;

    /** 总体积(m³) */
    @Excel(name = "总体积(m³)")
    private BigDecimal totalVolume;

    /** 供应商 */
    @Excel(name = "供应商")
    private String supplierSn;

    /** 工厂id */
    @Excel(name = "工厂id")
    private Long factoryId;

    /** 仓库id */
    @Excel(name = "仓库id")
    private Long storeId;

    /** 盘点时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date inventoryTime;

    @JsonProperty(access = JsonProperty.Access.READ_ONLY)
    private String barCode;

    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String beginTime;

    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String endTime;
}
